package com.gxa.zhonglong.util;

import java.sql.Date;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class CodeUtil {

    public  String XSCKDencode(){
        StringBuilder s= new StringBuilder("XSCKD");
        Timestamp timestamp = new Timestamp(System.currentTimeMillis());
        s.append(timestamp.getTime());
        return s.toString();
    }

    public String CGTHDencode(){
        StringBuilder s= new StringBuilder("CGTHD");
        SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmss");
        String str=sdf.format(new Timestamp(System.currentTimeMillis()));
        s.append(str);
        return s.toString();
    }

}
